package com.zzptc.easyshop.service;

import com.zzptc.easyshop.dao.GoodTypeDaoImp;
import com.zzptc.easyshop.facory.DaoFacoryImp;
import com.zzptc.easyshop.vo.VO;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImp implements IService {
    @Override
    public boolean insert(VO vo) throws SQLException {
        return false;
    }

    @Override
    public boolean login(VO vo) throws SQLException {
        return false;
    }

    @Override
    public List getAll() throws SQLException {
        try {
            GoodTypeDaoImp dao = (GoodTypeDaoImp) DaoFacoryImp.getInstance().createDAO("productdao");
            dao.getAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
